package com.tyfspring.context.event;

import com.tyfspring.context.ApplicationEvent;
import com.tyfspring.context.ApplicationListener;
/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/4/14 16:52
 */
public interface ApplicationEventMuticaster {

    void addApplicationListener(ApplicationListener<?> listener);

    void removeApplicationListener(ApplicationListener<?> listener);

    /**
     * 广播事件的方法
     * @param event
     */
    void muticastEvent(ApplicationEvent event);
}
